package week04;

import java.util.Scanner;

class Person{
	private String name;
	private int age;
	private boolean gender;
	public Person(String name, int age, boolean gender) {
		this.name = name;
		this.age = age;
		this.gender = gender;
	}
	@Override
	public String toString() {
		return name+"-"+age+"-"+gender;
	}
	
	
}
class Company{
	private String Logo;

	public Company(String logo) {
		Logo = logo;
	}

	@Override
	public String toString() {
		return Logo;
	}
	
}
class Employee extends Person{
	private Company company;
	private double salary;
	public Employee(String name, int age, boolean gender, Company company, double salary) {
		super(name, age, gender);
		this.company = company;
		this.salary = salary;
	}

	public String toString() {
		return super.toString()+"-"+company+"-"+salary;
	}
	
}
public class Hanshu1 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		Company str1=new Company(in.next());
		Employee employ=new Employee(in.next(), in.nextInt(), in.nextBoolean(), str1, in.nextDouble());
		System.out.println(employ);
	}

}
